]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: don't include hidden items in the width computation
authorDan Winship <danw@gnome.org>
Thu, 10 Mar 2011 16:59:50 +0000 (11:59 -0500)
committerDan Winship <danw@gnome.org>
Mon, 14 Mar 2011 13:28:06 +0000 (09:28 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=621707

js/ui/popupMenu.js

index d6eaf8e935883ba04d0e2725c11f4e6626b2d9da..887fb41f246d75f7739a9932bddfb5119ca0a0bd 100644 (file)
@@ -824,6 +824,8 @@ PopupMenuBase.prototype = {
         let columnWidths = [];
         let items = this.box.get_children();
         for (let i = 0; i < items.length; i++) {
+            if (!items[i].visible)
+                continue;
             if (items[i]._delegate instanceof PopupBaseMenuItem || items[i]._delegate instanceof PopupMenuBase) {
                 let itemColumnWidths = items[i]._delegate.getColumnWidths();
                 for (let j = 0; j < itemColumnWidths.length; j++) {